package wzc.design_pattern.creation.factory.abstract_factory;

/**
 * @Author 王振川
 * @Date 2025/7/19
 */

public class AbstractFactoryDemo {
    public static void main(String[] args) {
        AbstractFactory factory = new Factory1();
        ProductA productA = factory.createProductA();
        ProductB productB = factory.createProductB();
        productA.useA();
        productB.useB();
    }
}
